/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controller.utils;

import javax.swing.JPanel;

import tiendagui.internal.paneles.JPanelRopas;
import entities.vo.ArticuloVO;
import entities.vo.RopaVO;

/**
 *
 * @author Jhonny
 */
public class ControllerPanelRopa extends   ControllerPanel {

    public ControllerPanelRopa(JPanel panel) {
        super(panel);
    }

    @Override
    public void initComponentView(ArticuloVO articulo) {
        if(articulo!=null){
            ((JPanelRopas)panel).setTalle(((RopaVO)articulo).getTalle());
            ((JPanelRopas)panel).setOrigen(((RopaVO)articulo).getOrigen());
        }
    }

}
